An Object-Oriented Pattern Matching Language
نویسندگان
چکیده
A graphical model for describing schemes and instances of object-databases and a graphical data manipulation language based on pattern matching, called PaMaL, are introduced. The operations of PaMaL (addition and deletion of nodes and edges) use patterns to indicate the parts of the instance that are aaected by the operation. We give the syntax and semantics of the operations and the programming constructs (loop, procedure and program) of PaMaL. We add a reduce-operation to work with a special group of instances, the reduced instances.
منابع مشابه
Translation of Pattern Matching in a Java-like Language
Patternmatching is a programming language construct that is common in functional programming but somewhat less popular in object-oriented languages. The present paper gives an overview of issues that arise when adding pattern matching to an object-oriented language like Java.
متن کاملMatching and Uniication for the Object-oriented Symbolic Computation System
Term matching has become one of the most important primitive operations for symbolic computation. This paper describes the extension of the object-oriented symbolic computation system AlgBench with pattern matching and uniication facilities. The various pattern objects are organized in subclasses of the class of the composite expressions. This leads to a clear design and to a distributed implem...
متن کاملAdding Pattern Matching to Existing Object-Oriented Languages
While object-oriented languages are designed for information hiding and data encapsulation, intensive data manipulation often calls for pattern matching, one of the main features of functional programming languages. Pattern matching provides a concise way to describe specific structures or conditions of objects so that programmers can clearly identify and easily access the corresponding objects...
متن کاملMatching Objects Without Language Extension
Pattern matching is a powerful programming concept which has proven its merits in declarative programming. The absence of pattern-matching in object-oriented programming languages is felt especially when tackling source code processing problems. But existing proposals for pattern matching in such languages rely on language extension, which makes their adoption overly intrusive. We propose an ap...
متن کاملDeclarative Semantics in Object-Oriented Software Development - A Taxonomy and Survey
One of the modern paradigms to develop an application is object oriented analysis and design. In this paradigm, there are several objects and each object plays some specific roles in applications. In an application, we must distinguish between procedural semantics and declarative semantics for their implementation in a specific programming language. For the procedural semantics, we can write a ...
متن کاملTranslation Correctness for First-Order Object-Oriented Pattern Matching
Pattern matching makes ML programs more concise and readable, and these qualities are also sought in object-oriented settings. However, objects and classes come with open class hierarchies, extensibility requirements and the need for data abstraction, which all conflict with matching on concrete data types. Extractor-based pattern matching has been proposed to address this conflict. Extractors ...
متن کامل